


<table class="tablesorter">
<tr class="h1_head ui-widget-header">
    <th width="20%">Accion</th>
    <th width="30%">Descripción</th>
    <th width="30%">Roles</th>
    <th width="20%">Usuarios</th>
</tr>

<?foreach((array)$this->accesos as $text => $acceso):?>
<tr><td colspan="4"><h1 class="h1_head"><?=$text?></h1></td></td></tr>
    <?foreach((array)$acceso as $k => $accion):
    list($action,$descripcion)=explode('->',$k);
    ?>
    
    <tr class="ui-state-highlight">
    
        <td>
        <?=$action?>
        </td>
        <td>
        <?=$descripcion?>
        </td>
        <td>
        <?
        foreach((array)$accion['group'] as $v){
            print $v.'<br>';
        }?>
        </td>
         <td>
        <?
        foreach((array)$accion['user'] as $v){
            print $v.'<br>';
        }?>
        </td>  
    </tr>
    <?endforeach?>
<?endforeach?>
</table>
